<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
</head>
<body>
<form action="/users/update" method="post">
    <input type="hidden" value="<%= rows[0].id%>" name="id">
    账号：<input type="text" name="username"  value="<%= rows[0].username%>"><br>
    密码：<input type="text" name="password" value="<%= rows[0].password%>"><br>
    真实姓名：<input type="text" name="realname" value="<%= rows[0].realname%>"><br>
    <% if(rows[0].state==1){ %>
    状态：<input type="checkbox" name="state" checked><br>
    <%}else{%>
    状态：<input type="checkbox" name="state"><br>
    <%}%>
    <input type="submit" value="提交">
</form>
</body>
</html>